package com.tjetc.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.time.LocalDateTime;
/*
* 店铺
* */
@Data
public class Merchant {
    //商家id
    private Integer id;
    //密码
    private String password;
    //法人电话
    private String sellerTelephone;
    //法人名称
    private String sellerName;
    //店铺名称
    private String shopName;
    //店铺号码
    private String shopTelephone;
    //描述
    private String description;
    //商家状态，1代表在营业，0代表打样
    private Integer status;
    //省代码
    private Integer provinceId;
    //省名称
    private String provinceName;
    //城编号
    private Integer cityId;
    //城名称
    private String cityName;
    //区编码
    private Integer districtId;
    //区名
    private String districtName;
    //详细地址
    private String detail;
    //店铺图片
    private String image;
    //提成
    private BigDecimal commission;
    //起送费
    private BigDecimal dropOffFee;
    // 可提现余额
    private BigDecimal amount;
    //身份证号
    private String idCard;
    //身份证号图片
    private String idCardImage;
    //营业执照
    private String certificate;
    //食品安全许可证
    private String license;
    //银行卡号
    private String bankCard;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;
}
